package com.qf.searchFeign;

import com.qf.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf.searchFeign
 * @Description:
 * @Date 2022/7/7 22:14
 */

/**
 * fegin兜底方法
 */
@RequestMapping("/aaaasadas")
@Component//该类交给Spring管理
public class FeignSave implements Feign {
    @Override
    public String test() {
        return null;
    }

    @Override
    public User findById(Integer id) {
        return null;
    }

    @Override
    public User test1(Integer id) {
        User user = new User();
        user.setName("报错了~");
        return user;
    }

    @Override
    public String Test2() {
        return "报错了";
    }
}
